import type { UserType } from '@/types/user';
import { instance } from '@/utils/request';

// const loginByPassword = (mobile:string,password:string) => { 
//     return instance<UserType>(url:'/login/password', method:'POST', {mobile,password});
// }
 
export const loginByPassword = (mobile: string, password: string) => {
    return instance.post<UserType>('/login/password', { mobile, password }); // 使用正确的 post 请求方法，并传递正确的参数
};
